package com.yxq.mdt.app.modules.socialcontact.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yxq.mdt.app.R;
import com.yxq.mdt.app.glide.GlideHelper;
import com.yxq.mdt.app.modules.socialcontact.bean.AttentionManAndDynamicBean;

import java.util.List;

public class PossibleAttentionAdapter extends BaseQuickAdapter<AttentionManAndDynamicBean.ListBean, BaseViewHolder> {
    public PossibleAttentionAdapter(int layoutResId, @Nullable List<AttentionManAndDynamicBean.ListBean> data) {
        super(layoutResId, data);
    }

    @Override
    public int getItemCount() {
        return super.getItemCount() > 3 ? 3 : super.getItemCount();
    }

    @Override
    protected void convert(BaseViewHolder helper, AttentionManAndDynamicBean.ListBean item) {
        GlideHelper.setLoadImage(mContext, item.getHeadimg(), R.mipmap.head_icon, helper.getView(R.id.possible_item_icon));
    }


}
